// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import { createHead } from '@unhead/vue'
const head = createHead()

import { ConfigProvider } from 'vant'

import App from './App.vue'
import router from './router'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' //数据持久化


// import function to register Swiper custom elements
import { register } from 'swiper/element/bundle';
// register Swiper custom elements
register();



const app = createApp(App)

const pinia = createPinia()

pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(ConfigProvider)
app.use(head)




app.mount('#app')
